package com.d5power.utils
{
	public class MonsterFlushData
	{
		/**
		 * 怪物ID
		 */ 
		public var id:uint;
		/**
		 * 怪物是否停留
		 */ 
		public var stay:Boolean;
		/**
		 * 怪物行走范围
		 */ 
		public var walk_round:uint;
		/**
		 * 怪物刷新个数
		 */ 
		public var flush_num:uint;
		/**
		 * 怪物刷新范围
		 */ 
		public var flush_dis:uint;
		/**
		 * 怪物复活时间
		 */ 
		public var relive:uint;
		/**
		 * 怪物阵营设置
		 */ 
		public var campset:uint;
		
		/**
		 * 是否主动攻击
		 */ 
		public var autoAtk:Boolean;
		
		public var posx:uint;
		
		public var posy:uint;
		
		public function MonsterFlushData()
		{
		}
		
		public function format(monster:XML):void
		{
			id = int(monster.@id);
			stay = int(monster.@stay)==0 ? false : true;
			walk_round = int(monster.@walk_round);
			flush_num = int(monster.@flush_num);
			flush_dis = int(monster.@flush_dis);
			relive = int(monster.@relive);
			campset = int(monster.@camp);
			autoAtk = int(monster.@autoAtk)==0 ? false : true;
			posx = int(monster.@posx);
			posy = int(monster.@posy);
		}
	}
}